<?php

namespace IDock\Insurance\ZFIC\Request;

use IDock\Insurance\ZFIC\Response\CancelTradeResponse;
use IDock\Visitor\ProposalRecallVisitor;

class CancelTradeRequest extends AllZFICRequest
{

    protected $urlTip = '交易流水号撤销接口';

    protected $route = 'order/api/order/cancleTrade';

    protected $response = CancelTradeResponse::class;

    public $tradeNo = '';

    /*** @var ProposalRecallVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            "tradeNo" => $this->tradeNo,
            'proposalNo' => $this->visitor->inquiryNo,
        ];
    }
}
